<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加学生界面</title>
</head>
<body>
<h1>添加学生</h1>

<form action="/add_student/" method="post">
    <input type="text" name="sname" placeholder="学生姓名">
    <p>所在班级
        <select name="class_id">
            {% for class in class_list %}
                <option value="{{ class.id }}">{{ class.cname }}</option>
            {% endfor %}
        </select>
    </p>
    <input type="submit" value="提交">
</form>
</body>
</html>